package com.mingqijia.gassafety.authority.api.resp.privilege;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 创建后的返回数据
 * @author Damon S.
 * @version v0.2
 * @date 2021-06-19
 */
@Data
@ApiModel(value = "权限管理数据")
public class PrivilegeRespDTO implements Serializable {
    @ApiModelProperty(value = "权限ID")
    private String id;

    @ApiModelProperty(value = "权限主体")
    private String subjectId;

    @ApiModelProperty(value = "权限对象类型：1菜单，2数据")
    private Integer privilegeType;

    @ApiModelProperty(value = "权限主体类型：1角色，2用户")
    private Integer subjectType;

    @ApiModelProperty(value = "权限内容")
    private List<String> data;

    @ApiModelProperty(value = "权限状态")
    private Integer state;
}